package com.liaow.test.retrofit.testbeanconfiguration;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * @Description: yml配置文件属性管理配置的实体类
 * @Author: L.Wen
 * @Creation_Time: 2020/08/26 13:51
 */
@Data
@Component
@ConfigurationProperties(prefix = "test")
public class YmlPropertiesConfig {

    private String baseUrl;
    private Integer serverPort;
    private String testPath;
    private String simpleProp;
    private String[] arrayProps;
    // 接收listProp1里面的属性值
    private List<Map<String, String>> listProp1 = new ArrayList<Map<String, String>>();
    // 接收listProp2里面的属性值
    private List<String> listProp2 = new ArrayList<String>();
    // 接收mapProps里面的属性值
    private Map<String, String> mapProps = new HashMap<String, String>();

}
